home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 32 / Mac Magazin and MacEasy Magazine CD - Issue 32.iso / Grafik & Text / OzTeX3.0 / TeX-inputs / LaTeX / graphics / truetex.def < prev   
Text File  |  1997-03-07  |  4KB  |  127 lines

  1. %%
  2. %% This is file `truetex.def',
  3. %% generated with the docstrip utility.
  4. %%
  5. %% The original source files were:
  6. %%
  7. %% drivers.dtx  (with options: `truetex,color4,nops')
  8. %% 
  9. %% drivers.dtx Copyright (C) 1994      David Carlisle Sebastian Rahtz
  10. %%             Copyright (C) 1995 1996 David Carlisle
  11. %%
  12. %% This file is part of the Standard LaTeX `Graphics Bundle'.
  13. %%
  14. %% It should be distributed *unchanged* and together with all other
  15. %% files in the graphics bundle. The file 00readme.txt contains a list
  16. %% of all of these files.
  17. %%
  18. %% A modified version of this file may be distributed, but it should
  19. %% be distributed with a *different* name. Changed files must be
  20. %% distributed *together with a complete and unchanged* distribution
  21. %% of these files.
  22. %%
  23. \ProvidesFile{truetex.def}
  24.         [1996/12/12 v3.0d Driver-dependant file (DPC,SPQR)]
  25. \def\c@lor@arg#1{%
  26.   \dimen@#1\p@
  27.   \ifdim\dimen@<\z@\dimen@\maxdimen\fi
  28.   \ifdim\dimen@>\p@
  29.     \PackageError{color}{Argument `#1' not in range [0,1]}\@ehd
  30.   \fi}
  31. \def\color@gray#1#2{%
  32.   \c@lor@arg{#2}%
  33.   \c@lor@rgb@RGB\@tempa
  34.   \edef#1{\@tempa\@tempa\@tempa}%
  35.   }
  36. \def\color@cmyk#1#2{\c@lor@@cmyk#2\@@#1}
  37. \def\c@lor@@cmyk#1,#2,#3,#4\@@#5{%
  38.   \c@lor@arg{#4}%
  39.     \dimen@ii#4\p@
  40.   \c@lor@arg{#1}%
  41.   \c@lor@cmyk@RGB\@tempa
  42.   \c@lor@arg{#2}%
  43.   \c@lor@cmyk@RGB\@tempb
  44.   \c@lor@arg{#3}%
  45.   \c@lor@cmyk@RGB\@tempc
  46.   \edef#5{\@tempa\@tempb\@tempc}%
  47.   }
  48. \def\c@lor@cmyk@RGB#1{%
  49.   \advance\dimen@-\p@
  50.   \advance\dimen@\dimen@ii
  51.   \dimen@-\@cclv\dimen@
  52.   \divide\dimen@\p@
  53.   \count@\ifdim\dimen@<\z@\z@\else\dimen@\fi
  54.   \edef#1{\the\count@\space}}
  55. \def\color@rgb#1#2{\c@lor@@rgb#2\@@#1}
  56. \def\c@lor@@rgb#1,#2,#3\@@#4{%
  57.   \c@lor@arg{#1}%
  58.   \c@lor@rgb@RGB\@tempa
  59.   \c@lor@arg{#2}%
  60.   \c@lor@rgb@RGB\@tempb
  61.   \c@lor@arg{#3}%
  62.   \c@lor@rgb@RGB\@tempc
  63.   \edef#4{\@tempa\@tempb\@tempc}%
  64.   }
  65. \def\c@lor@rgb@RGB#1{%
  66.   \dimen@\@cclv\dimen@
  67.   \count@\dimen@
  68.   \divide\count@\p@
  69.   \edef#1{\the\count@\space}}
  70. \def\color@RGB#1#2{\c@lor@@RGB#2\@@#1}
  71. \def\c@lor@@RGB#1,#2,#3\@@#4{%
  72.   \edef#4{#1 #2 #3}%
  73.   }
  74. \def\color@named#1#2{\c@lor@@named#2,,\@@#1}
  75. \def\c@lor@@named#1,#2,#3\@@#4{%
  76.   \@ifundefined{col@#1}%
  77.     {\PackageError{color}{Undefined color `#1'}\@ehd}%
  78.   {\edef#4{\csname col@#1\endcsname}}%
  79.   }
  80. \def\c@lor@to@ps#1#2 #3 #4\@@{%
  81.   #1#2 255 div #3 255 div #4 255 div setrgbcolor}
  82. \def\current@color{0 0 0}
  83. \def\set@color{%
  84.   \special{textcolor: \current@color}\aftergroup\reset@color}
  85. \def\reset@color{\special{textcolor: \current@color}}
  86. \def\set@page@color{%
  87.   \c@lor@special\sixt@@n{background color ignored: \current@color}}
  88. \def\define@color@named#1#2{%
  89.   \expandafter\edef\csname col@#1\endcsname{#2}}
  90. \def\Ginclude@eps#1{%
  91.  \message{<#1>}%
  92.   \bgroup
  93.   \def\@tempa{!}%
  94.   \dimen@\Gin@req@width
  95.   \dimen@ii.1bp%
  96.   \divide\dimen@\dimen@ii
  97.   \@tempdima\Gin@req@height
  98.   \divide\@tempdima\dimen@ii
  99.     \special{PSfile="#1"\space
  100.       llx=\Gin@llx\space
  101.       lly=\Gin@lly\space
  102.       urx=\Gin@urx\space
  103.       ury=\Gin@ury\space
  104.       \ifx\Gin@scalex\@tempa\else rwi=\number\dimen@\space\fi
  105.       \ifx\Gin@scaley\@tempa\else rhi=\number\@tempdima\space\fi
  106.       \ifGin@clip clip\fi}%
  107.   \egroup}
  108. \def\Ginclude@bmp#1{%
  109.  \message{<#1>}%
  110.  \special{bmpfile #1}}
  111. \def\Ginclude@tiff#1{%
  112.  \message{<#1>}%
  113.  \special{tifffile #1}}
  114. \def\Gin@extensions{.eps,.ps}
  115. \@namedef{Gin@rule@.ps}#1{{eps}{.ps}{#1}}
  116. \@namedef{Gin@rule@.eps}#1{{eps}{.eps}{#1}}
  117. \@namedef{Gin@rule@.tif}#1{{tiff}{}{#1}}
  118. \@namedef{Gin@rule@.bmp}#1{{bmp}{}{#1}}
  119. \@namedef{Gin@rule@*}#1{{eps}{\Gin@ext}{#1}}
  120. \def\Gin@PS@raw#1{}
  121. \def\Gin@PS@restored#1{}
  122. \def\Gin@PS@literal@header#1{}
  123. \def\Gin@PS@file@header#1{}
  124. \endinput
  125. %%
  126. %% End of file `truetex.def'.
  127.